package tiandang.core.model;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public class OrderInfo {

  private String id;

  @NotNull(message = "openid不能为空")
  private String openid;

  private BigDecimal originAmount;

  private BigDecimal orderAmount;

  private LocalDateTime createtime;

  //0未支付  1已支付
  private Byte payStatus;

  //0已创建  1已取消  3待退款 4 已退款
  private Byte orderStatus;

  //0未发货  1已发货
  private Byte deliveryStatus;

  @NotNull(message = "团长id不能为空")
  private Integer managerId;

  @NotNull(message = "开团id不能为空")
  private Integer promoId;

  @NotNull(message = "用户姓名不能为空")
  private String name;

  @NotNull(message = "手机号不能为空")
  private String phone;

  @NotNull(message = "自提地址不能为空")
  private String pickAddress;

  private String remarks;

  private String nickname;

  private String imgUrl;

  private Integer total;

  private Promo promo;

  private Manager manager;

  private List<OrderProduct> orderProductList;

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public String getImgUrl() {
    return imgUrl;
  }

  public void setImgUrl(String imgUrl) {
    this.imgUrl = imgUrl;
  }

  public Integer getTotal() {
    return total;
  }

  public void setTotal(Integer total) {
    this.total = total;
  }

  public Byte getDeliveryStatus() {
    return deliveryStatus;
  }

  public void setDeliveryStatus(Byte deliveryStatus) {
    this.deliveryStatus = deliveryStatus;
  }

  public Promo getPromo() {
    return promo;
  }

  public void setPromo(Promo promo) {
    this.promo = promo;
  }

  public Manager getManager() {
    return manager;
  }

  public void setManager(Manager manager) {
    this.manager = manager;
  }

  public List<OrderProduct> getOrderProductList() {
    return orderProductList;
  }

  public void setOrderProductList(List<OrderProduct> orderProductList) {
    this.orderProductList = orderProductList;
  }

  public Byte getPayStatus() {
    return payStatus;
  }

  public void setPayStatus(Byte payStatus) {
    this.payStatus = payStatus;
  }

  public Byte getOrderStatus() {
    return orderStatus;
  }

  public void setOrderStatus(Byte orderStatus) {
    this.orderStatus = orderStatus;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id == null ? null : id.trim();
  }

  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid == null ? null : openid.trim();
  }

  public BigDecimal getOriginAmount() {
    return originAmount;
  }

  public void setOriginAmount(BigDecimal originAmount) {
    this.originAmount = originAmount;
  }

  public BigDecimal getOrderAmount() {
    return orderAmount;
  }

  public void setOrderAmount(BigDecimal orderAmount) {
    this.orderAmount = orderAmount;
  }

  public LocalDateTime getCreatetime() {
    return createtime;
  }

  public void setCreatetime(LocalDateTime createtime) {
    this.createtime = createtime;
  }

  public Integer getManagerId() {
    return managerId;
  }

  public void setManagerId(Integer managerId) {
    this.managerId = managerId;
  }

  public Integer getPromoId() {
    return promoId;
  }

  public void setPromoId(Integer promoId) {
    this.promoId = promoId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone == null ? null : phone.trim();
  }

  public String getPickAddress() {
    return pickAddress;
  }

  public void setPickAddress(String pickAddress) {
    this.pickAddress = pickAddress == null ? null : pickAddress.trim();
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks == null ? null : remarks.trim();
  }
}
